headerbar: Fix size allocation
authorMatthias Clasen <mclasen@redhat.com>
Fri, 5 Aug 2016 05:08:44 +0000 (01:08 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 7 Aug 2016 19:08:44 +0000 (15:08 -0400)
The GtkHeaderBar gadget implementation was subtly broken: it called
gtk_widget_set_allocation both in gtk_header_bar_size_allocate (with
the actual allocation) and in gtk_header_bar_allocate_contents (with
the content allocation of the main gadget). Dropping the second call
fixes the render node conversion for GtkHeaderBar.

gtk/gtkheaderbar.c

index 8182bec972dfe5d9ce326a07f98ba04239aa59ed..51546754ee9407c5ddf75d05afee026f592766e2 100644 (file)
@@ -1012,8 +1012,6 @@ gtk_header_bar_allocate_contents (GtkCssGadget        *gadget,
   gint child_size;
   GtkTextDirection direction;
 
-  gtk_widget_set_allocation (widget, allocation);
-
   direction = gtk_widget_get_direction (widget);
   nvis_children = count_visible_children (bar);
   sizes = g_newa (GtkRequestedSize, nvis_children);